package hn.cch.spring.aop.aspect.demo;

import hn.cch.spring.aop.aspect.AopConfiguration0;
import hn.cch.spring.aop.aspect.ExecutionAspect;
import org.springframework.context.annotation.ConfigurationClassPostProcessor;
import org.springframework.context.support.GenericApplicationContext;

public class ExecutionAspectDemo {

    public static void main(String[] args) {
        // 代理创建时机
        GenericApplicationContext applicationContext = new GenericApplicationContext();
        applicationContext.registerBean(ConfigurationClassPostProcessor.class);
        applicationContext.registerBean(AopConfiguration0.class);
        applicationContext.registerBean(ExecutionAspect.class);
        applicationContext.refresh();

        applicationContext.close();
    }

}
